﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  <title>hCalendar 13 - different location structures</title>
  
  <!-- This will be replace with one CSS file and one JavaScipt file -->
  <link rel="stylesheet" href="../css/uftestsuite.css" type="text/css" />
  <link rel="stylesheet" href="../../testrunner/css/testrunner.css" type="text/css" />
  
  <script type="text/javascript" src="../../testrunner/javascript/prototype-1.6.0.2.js"></script> 
  <script type="text/javascript" src="../../testrunner/javascript/beautify.js"></script> 
  <script type="text/javascript" src="../../testrunner/javascript/sumo/microformat.js"></script>
  <script type="application/javascript;version=1.7" src="http://svn.mozilla.org/labs/operator/chrome/content/Microformats/Microformats.js"></script>
  <script type="text/javascript" src="../../testrunner/javascript/shiv/microformats-shiv.js"></script>
  <script type="text/javascript" src="../../testrunner/javascript/shiv/microformats-definition.js"></script>  
  <script type="text/javascript" src="../../testrunner/javascript/testrunner.js"></script>
   
</head>
<body>
    
    
    <div class="test-fixture">
    
    <p>
    <a href="../"><img border="0" id="testsuite-image" alt="Microformats test suite" src="../images/testsuite.gif" /></a><br />
    </p>
    
    <h1 class="summary">hCalendar 13 - different location structures</h1>
    
    <p class="description">This page was design to test the different type of 
	possilbe location structures within hCalandar. A location can be either a 
	string, hCard, adr or geo.</p>
	
    <p>From: <a href="default.htm"><span class="format">hCalendar</span> test suite 1.0</a></p>
    <p class="author vcard">
        Author: <a class="url fn" href="http://www.glennjones.net/">Glenn Jones</a> 
    </p>
    
    <input id="unittestbutton" type="button" onclick="microformatsTestRunner.displayTestOptionForm()" value="Unit Test Runner"/>

      
    <p>Tests:</p>
    <table id="assetTable" cellpadding="0" cellspacing="0">
    <thead>
        <tr>
            <th>Test</th>
            <th>Result</th>
            <th>Comment</th>
        </tr>
    </thead>
    	<tbody>
        
	         <tr class="assert">
	            <td class="test">vevent[0].location</td>
	            <td class="result">IsEqualTo("Brighton")</td>
	            <td class="comment">The location property is a single string</td>
	        </tr>
	        
	       <tr class="assert">
	            <td class="test">vevent[1].location.locality</td>
	            <td class="result">IsEqualTo("Brighton")</td>
	            <td class="comment">The location property is an adr</td>
	        </tr>

	        
	        <tr class="assert">
	            <td class="test">vevent[2].location.adr[0].locality</td>
	            <td class="result">IsEqualTo("Brighton")</td>
	            <td class="comment">The location property is an hcard</td>
	        </tr>
	        
	       	<tr class="assert">
	            <td class="test">vevent[3].location.latitude</td>
	            <td class="result">IsEqualTo("37.77")</td>
	            <td class="comment">The location property is an geo</td>
	        </tr>

	        
         </tbody>
    </table> 
    
    
    <p>History:</p>
    
    <ul>
    <li class="history vevent">
        <span class="summary">Created</span>: <abbr class="dtstart" title="2008-07-14">14 July 2008</abbr> 
        <span class="description">by Glenn Jones</span>
    </li>
    </ul>
    
    
    
    </div>
  
    <div id="uf">
    
    	<!-- This may not be the best semantic use of HTML element -->
    	
 		<!-- 0  -->
 		<div class="vevent">
			<div class="summary">Web Standards meet up 1</div>
			<div>Starts: <abbr class="dtstart" title="2008-06-01">1 June</abbr></div>
			<div><a class="url uid" href="http://1.example.com">1.example.com</a></div>
			<div class="location">Brighton</div>
		</div>
		
		 <!-- 1  -->
 		<div class="vevent">
			<div class="summary">Web Standards meet up 2</div>
			<div>Starts: <abbr class="dtstart" title="2008-06-01">1 June</abbr></div>
			<div><a class="url uid" href="http://1.example.com">1.example.com</a></div>
			 <div class="location adr">
                <span class="type">Work</span>: 
                <div class="label">
                    <span class="post-office-box">PO Box 46</span>, 
                    <span class="extended-address">Flat 2</span>,
                    <span class="street-address">Sunny House</span>, 
                    <span class="street-address">West Street</span>, 
                    <span class="locality">Brighton</span>, 
                    <span class="region">East Sussex</span>, 
                    <span class="country-name">United Kingdom</span>, 
                    <span class="postal-code">BN1 3DF</span>
                </div>
            </div>
		</div>

		<!-- 3  -->
 		<div class="vevent">
			<div class="summary">Web Standards meet up 3</div>
			<div>Starts: <abbr class="dtstart" title="2008-06-01">1 June</abbr></div>
			<div><a class="url uid" href="http://1.example.com">1.example.com</a></div>
			
			<div class="vcard location">
          		<div class="fn org">Madgex House</div>            	
	            <div class="adr">
	                <span class="type">Home</span>: 
	                <div class="label">
	                    <span class="post-office-box">PO Box 46</span>, 
	                    <span class="extended-address">Flat 2</span>,
	                    <span class="street-address">Sunny House</span>, 
	                    <span class="street-address">West Street</span>, 
	                    <span class="locality">Brighton</span>, 
	                    <span class="region">East Sussex</span>, 
	                    <span class="country-name">United Kingdom</span>, 
	                    <span class="postal-code">BN1 3DF</span>
	                </div>
	            </div>
			</div>
		</div>
		
		<!-- 4  -->
 		<div class="vevent">
			<div class="summary">Web Standards meet up 4</div>
			<div>Starts: <abbr class="dtstart" title="2008-06-01">1 June</abbr></div>
			<div><a class="url uid" href="http://1.example.com">1.example.com</a></div>
			<div>Location: <abbr class="location geo" title="37.77;-122.41">Brighton</abbr></div>
		</div>


		    
    </div>
    
    <p>
        <a rel="license" href="../license.txt">Some rights reserved</a>
    </p>
      
</body>

</html>